package com.hunttown.mes.rpc.api;

import com.hunttown.mes.rpc.domain.TransportPurchaseDTO;
import com.hunttown.mes.rpc.domain.query.TransportPurchaseDTOQuery;
import com.hunttown.common.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * created by wangjunfu on 2019-05-19 01:20:05
 */
public interface TransportPurchaseRpcService {

    TransportPurchaseDTO insert(TransportPurchaseDTO transportPurchaseDTO);

    Boolean updateInfoById(TransportPurchaseDTO transportPurchaseDTO);

    Boolean updateInfoByQuery(TransportPurchaseDTOQuery transportPurchaseDTOQuery);

    TransportPurchaseDTO selectById(Integer id);

    TransportPurchaseDTO selectObjByQuery(TransportPurchaseDTOQuery transportPurchaseDTOQuery);

    Page<TransportPurchaseDTO> getListForPage(TransportPurchaseDTOQuery transportPurchaseDTOQuery);

    Boolean deleteById(Integer id);

    List<Map<String, String>> selectSimilarPurchase(String similar, Integer purchaseType);
}